<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <a href="toAdd"><button>添加</button></a>
    <table border="1" cellpadding="8" cellspacing="0">
        <tr>
            <td>编号</td>
            <td>姓名</td>
            <td>部门</td>
            <td>城市</td>
            <td>操作</td>
        </tr>
        <tr th:each="e : ${employees}">
            <td th:text="${e.id}">1</td>
            <td th:text="${e.name}">张三</td>
            <td th:text="${e.dept.name}">aa</td>
            <td th:text="${e.city.name}">aa</td>
            <td>
                <a th:href="@{'toUpdate?id='+${e.id}}"><button>修改</button></a>
                <a th:href="@{'toDelete?id='+${e.id}}"><button>删除</button></a>
            </td>
        </tr>
    </table>
</body>
</html>